{% if is_bulk %}
📄 {{ invoices|length }} Invoices Loaded
{% endif %} {% for inv in invoices %}
{% if inv.show_header %}
{% if is_bulk %}Invoice {{ forloop.counter }} of {{ invoices|length }}{% else %}Page 1 of 1{% endif %}
{{ inv.invoice_no_raw }}-{{ inv.invoice_date }}
{% if inv.shop.logo_url %}
Logo
{% endif %}
{{ inv.shop.name|default:"BLUEPRIMES SOFTWARE" }}
{{ inv.shop.address|default:"" }}
{% if inv.shop.phone_1 %}{{ inv.shop.phone_1 }}{% endif %}
{{ inv.invoice_title|default:"Sale Invoice" }}
{% endif %}
Invoice No: {{ inv.invoice_no }} Invoice Date: {{ inv.invoice_date }} Customer {{ inv.customer.business_name }} License # {{ inv.customer.license_no|default:"N/A" }} {{ inv.expiry_status_text }}
Sale Order Type : {% if inv.t_cat_str == 'return' %}RETURN{% else %}REGULAR{% endif %} Region: {{ inv.customer.area|default:inv.area|default:"0" }} Expiry {{ inv.customer.license_exp|default:"N/A" }}
Due Date: {{ inv.due_date }} Phone: {{ inv.customer.phone }} NIC: {{ inv.customer.cnic }} NTN # {{ inv.customer.ntn|default:"#" }}
Reference Date: {{ inv.reference_date }} Address {{ inv.customer.address }}
Order Booking Person : {{ inv.order_booker|default:"1" }} Delivery Man: {{ inv.delivery_man }} Gen. Date: {{ inv.gen_date }}
Remarks: {{ inv.remarks }}
{% for company_name, company_data in inv.items_by_company.items %} {% for item in company_data.items %} {% endfor %} {% empty %} {% endfor %} {% if inv.items_by_company %} {% endif %}
Code Item Name Batch
No.
Expiry
Date
Quantity Bonus Tp Gross Disc
%
Disc
Amount
Sale
Tax
Add
Tax
Grand
Amount
.
{{ item.product_code|default:item.sn }} {{ item.name }} {{ item.batch|default:"0" }} {{ item.expiry }} {{ item.qty }} {{ item.bonus }} {{ item.price }} {{ item.gross }} {{ item.disc_pct|default:"-" }} {{ item.disc_amt }} {{ item.sale_tax }} {{ item.further_tax }} {{ item.grand }}
Total For : {{ company_data.total_qty|floatformat:0 }} - {{ company_data.total_gross|floatformat:2 }} {{ company_data.total_grand|floatformat:2 }}
No items found
Total Items : {{ inv.totals.total_items }} Total For Invoice {{ inv.invoice_no }} : {{ inv.totals.total_qty|floatformat:0 }} {{ inv.totals.total_gross|floatformat:2 }} {{ inv.totals.total_disc|floatformat:2 }} {{ inv.totals.total_sale_tax|floatformat:2 }} {{ inv.totals.total_grand|floatformat:2 }}
Previous Balance = {{ inv.pre_balance }} Total Payable Amount = {{ inv.total_payable }}
Discount Amount = {{ inv.discount_amount }}
Advance Tax = {{ inv.advance_tax|floatformat:0 }}
Final Amount = {{ inv.final_act_total }}
{{ inv.amount_in_words }}

Software Provided by Blue Primes Software (Pvt) Ltd

Ph# +92-317-5960388

{% if inv.show_footer and inv.terms_html %} {% endif %}
{% endfor %}